package com.libre.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.libre.auth.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    List<Role> findRolesByUserId(@Param("userId") String userId);

    List<Role> findRolesByUsername(@Param("username") String username);

}
